//
//  SongsModel.m
//  悦享
//
//  Created by dllo on 16/3/19.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "SongsModel.h"
#import "AuditionListModel.h"
@implementation SongsModel

- (void)setValue:(id)value forKey:(NSString *)key {
    
    [super setValue:value forKey:key];
    
//    self.auditionListArr = [NSMutableArray array];
    if ([key isEqualToString:@"auditionList"]) {
        
       
//        for (NSDictionary *tempDic in value) {
//            AuditionListModel *model = [[AuditionListModel alloc] init];
//            [model setValuesForKeysWithDictionary:tempDic];
//            [_auditionListArr addObject:model];
//        }
        AuditionListModel *model = [[AuditionListModel alloc] init];
        [model setValuesForKeysWithDictionary:[value firstObject]];
        self.auditionListArr = [NSArray arrayWithObject:model];
//        [_auditionListArr addObject:model];
    }
    
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    
    
}

@end
